Skip to content

Conversation

@VasekPurchart
Copy link
Contributor

Fixes #295 and as mentioned there - there is no intention in adding it in Doctrine ORM and I also think it should not be there. So either PHPStan has to understand that the exception can go from DBAL to flush() or we have to help him and that is why I think it should be in this repo.

@VasekPurchart VasekPurchart changed the title Document that EntityManager::flush() can throw Doctrine\DBAL\Exception\UniqueConstraintViolationException Document that EntityManager::flush() can throw DBAL's UniqueConstraintViolationException Apr 4, 2022
@VasekPurchart VasekPurchart force-pushed the flush-exception branch 2 times, most recently from 67eae8e to 8c3299a Compare April 4, 2022 12:55
@ondrejmirtes ondrejmirtes merged commit 802cc56 into phpstan:1.3.x Apr 5, 2022
@ondrejmirtes
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow UniqueConstraintViolationException on EntityManager::flush()

2 participants